﻿<Window x:Class="HardangerStandalone.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:hdv="clr-namespace:Hardanger.View;assembly=HardangerCore"
        xmlns:hdm="clr-namespace:Hardanger.Model;assembly=HardangerCore"
        xmlns:hdc="clr-namespace:Hardanger.ViewModel;assembly=HardangerCore"
        Title="Hardanger" Height="701" Width="1104" WindowState="Maximized" Icon="/HardangerStandalone;component/media/Hardanger.png">
  
    <Grid>
        <hdv:HardangerMain Margin="400,0,12,29" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" /> 
        <Button Content="Stop Capture" Height="23" Margin="12,12,0,0" Name="ProxyToggle" VerticalAlignment="Top" Click="ProxyToggle_Click" HorizontalAlignment="Left" Width="75" />
        <ListView HorizontalAlignment="Left" Margin="12,46,0,29" Name="AllSessionsList" Width="380" ItemsSource="{Binding AllSessions}"  SelectionMode="Single" SelectedItem="{Binding SelectedSession}">
            
            <ListView.View>
            <GridView>
                    <GridViewColumn Width="50" Header="Id"  DisplayMemberBinding="{Binding Path=FiddlerId}" />
                    <GridViewColumn Width="360" Header="Uri"  DisplayMemberBinding="{Binding Path=Uri}" />
            </GridView>
          </ListView.View>
        </ListView>
        <Label Content="Local Proxy Port:" Height="28" HorizontalAlignment="Left" Margin="103,11,0,0" Name="label1" VerticalAlignment="Top" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="207,13,0,0" Name="localPort" VerticalAlignment="Top" Width="62" Text="7337" MaxLength="5" IsEnabled="False" />
		<StatusBar Height="35" HorizontalAlignment="Stretch"  Name="hdStatusBar" VerticalAlignment="Bottom">
            <Label Content="Session Count:" HorizontalAlignment="Left" Name="label2" VerticalAlignment="Bottom" />
            <TextBlock Text="{Binding AllSessions.Count}" Width="100"/>
            <Label Content="Selected Session:" HorizontalAlignment="Left" Name="label3" VerticalAlignment="Bottom" />
			<TextBlock Text="{Binding ElementName=AllSessionsList,Path=SelectedItem.FiddlerId}"  Width="100"/>
            <Label Content="Fuzzing Session:" HorizontalAlignment="Left" Name="label4" VerticalAlignment="Bottom" />
			<TextBlock Text="{Binding FuzzingSessionId}"  Width="100"/>
            <Label Content="Total Results:" HorizontalAlignment="Left" VerticalAlignment="Bottom" />
            <TextBlock Text="{Binding Results.Count}" Width="100"/> 
        </StatusBar>
        <Button Content="Clear" Height="23" HorizontalAlignment="Left" Margin="317,13,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" />
        
    </Grid>
</Window>
